package ${domain}.action.ajax.wsys;

import org.springframework.beans.factory.annotation.Autowired;
import ${domain}.frame.auth.LocalData;
import ${domain}.module.wsys.mgr.LogtaskManager;
import ${domain}.module.wsys.req.LogtaskCreateRequest;
import ${domain}.module.wsys.req.LogtaskDeleteRequest;
import ${domain}.module.wsys.req.LogtaskFindRequest;
import ${domain}.module.wsys.rsp.LogtaskCreateResponse;
import ${domain}.module.wsys.rsp.LogtaskDeleteResponse;
import ${domain}.module.wsys.rsp.LogtaskFindResponse;

public class LogtaskAjax {

    @Autowired
    private LogtaskManager logtaskManager;

    public LogtaskCreateResponse create(LogtaskCreateRequest request) {
        return logtaskManager.create(request, LocalData.getToken());
    }

    public LogtaskDeleteResponse delete(LogtaskDeleteRequest request) {
        return logtaskManager.delete(request, LocalData.getToken());
    }

    public LogtaskFindResponse find(LogtaskFindRequest request) {
        return logtaskManager.find(request, LocalData.getToken());
    }
}